package com.daisuxia.lianlian.entity;


import java.io.Serializable;

/**
 * 连连SDK签约授权核心类
 * @author duj
 *
 * @version 2016-11-30
 */
public class LianlianSignGrantSend implements Serializable {


	private static final long serialVersionUID = 1L;

	private String version = "1.1";

	private String app_request = "3";

	private String url_return;

	String pay_type = "I";

	private String acct_name = "";//银行账号姓名

	private String card_no = " ";//银行卡号

	private String id_no = "";//证件号码

	private String id_type = "0";//证件类型

	private String oid_partner = "";//商户编号

	private String repayment_no = "";//还款计划编号,每次生成唯一的存在用户表中，代扣是使用

	private String repayment_plan;//还款计划

	private String risk_item = "";//风险控制参数

	private String sign_type = "RSA";//签名方式

	private String sms_param = null;//短信参数

	private String user_id = "";//商户用户唯一编号

	private String sign = "";//签名 

	public String getAcct_name() {
		return acct_name;
	}

	public void setAcct_name(String acct_name) {
		this.acct_name = acct_name;
	}

	public String getCard_no() {
		return card_no;
	}

	public void setCard_no(String card_no) {
		this.card_no = card_no;
	}

	public String getId_no() {
		return id_no;
	}

	public void setId_no(String id_no) {
		this.id_no = id_no;
	}

	public String getId_type() {
		return id_type;
	}

	public void setId_type(String id_type) {
		this.id_type = id_type;
	}

	public String getOid_partner() {
		return oid_partner;
	}

	public void setOid_partner(String oid_partner) {
		this.oid_partner = oid_partner;
	}

	public String getRepayment_no() {
		return repayment_no;
	}

	public void setRepayment_no(String repayment_no) {
		this.repayment_no = repayment_no;
	}

	public String getRepayment_plan() {
		return repayment_plan;
	}

	public void setRepayment_plan(String repayment_plan) {
		this.repayment_plan = repayment_plan;
	}

	public String getRisk_item() {
		return risk_item;
	}

	public void setRisk_item(String risk_item) {
		this.risk_item = risk_item;
	}

	public String getSign_type() {
		return sign_type;
	}

	public void setSign_type(String sign_type) {
		this.sign_type = sign_type;
	}

	public String getSms_param() {
		return sms_param;
	}

	public void setSms_param(String sms_param) {
		this.sms_param = sms_param;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}
/*
	//结果验签
	public static boolean verifyLianlianSignAndAuthSign(LianlianSignAndAuthRecv lianlianSignAndAuthRecv) {
		String sginResultOrigin = LLPayUtil.genSignDataByJavaObject(lianlianSignAndAuthRecv);
		return RSAUtil.checksign(PayContents.LL_PUBLIC_KEY, sginResultOrigin, lianlianSignAndAuthRecv.getSign());
	}*/

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getApp_request() {
		return app_request;
	}

	public void setApp_request(String app_request) {
		this.app_request = app_request;
	}

	public String getUrl_return() {
		return url_return;
	}

	public void setUrl_return(String url_return) {
		this.url_return = url_return;
	}

	public String getPay_type() {
		return pay_type;
	}

	public void setPay_type(String pay_type) {
		this.pay_type = pay_type;
	}

	@Override
	public String toString() {
		return "LianlianSignAndAuthCore [acct_name=" + acct_name + ", card_no="
				+ card_no + ", id_no=" + id_no + ", id_type=" + id_type
				+ ", oid_partner=" + oid_partner + ", repayment_no="
				+ repayment_no + ", repayment_plan=" + repayment_plan
				+ ", risk_item=" + risk_item + ", sign_type=" + sign_type
				+ ", sms_param=" + sms_param + ", user_id=" + user_id
				+ ", sign=" + sign + "]";
	}

}
